import express from 'express';
import cors from 'cors';
const app = express();

app.use(
    cors() //  allows all origins to access the API
);

app.get('/', (req, res) => {
    res.send('Hello, World!');
});

app.listen(3001, () => {
    console.log('Server is running on port 3001');
});